<?php

declare (strict_types=1);

namespace App\Model;

use Qbhy\HyperfAuth\AuthAbility;
use Qbhy\HyperfAuth\Authenticatable;

/**
 * @package App\Model
 */
class UsersDetail extends BaseModel
{
    use AuthAbility;

    protected $table = 'user_detail';

    public $timestamps = true;

    protected $fillable = [
        'id',
        'user_id',
        'head_img',
        'nickname',
        'sex',
        'stature',
        'weight',
        'province',
        'city',
        'id_type',
        'id_num',
        'real_name',
        'district',
        'province_code',
        'city_code',
        'district_code',
        'status',
        'is_delete',
        'created_at',
        'updated_at',
        'country',
        'registration_id',
        'app_version',
        'last_login_type',
        'last_login_time',
        'sign',
        'client_id'
    ];

    public $id_type = [
        '0' => '未设置',
        '1' => '身份证',
        '2' => '护照',
    ];
}
